package com.xhu.water_supply.web.utils;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * 负载数据对象
 */
@Data
@Builder
public class PayloadDTO {
    @ApiModelProperty("JWT的ID")
    private String jId;

    @ApiModelProperty("管理员用户名")
    private String administratorName;

    @ApiModelProperty("签发时间")
    private long iat;

    @ApiModelProperty("过期时间")
    private long exp;

    @ApiModelProperty("主体数据")
    private String sub;

    @ApiModelProperty("用户拥有的权限")
    private List<String> authorities;
}
